<div class="box_2">
    <div class="title reg bold"> 
        <!--<a href="#" class="detail_search inline-block align_right fright">See all</a> -->
        <span class="inline-block fleft align_left" style="width:415px"><h3> <a href="<?= base_url();?>member/myaccount"> My Account </a></h3></span>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/add">Sale Car</a>
        <a class="color_3" style="margin-right: 20px" href="<?= base_url();?>member/car/requirement">Post Requirement</a>
        <div class="clear"></div>
    </div>
    <div class="clear"> </div>
    <div id="inner" style="text-align: justify">
        <div style="width: 300px; float: left; height: auto">
            <ul>
                <li> <strong> <?= $member['info']->first_name . ' ' . $member['info']->last_name; ?> &nbsp; <?= '#' . $member['info']->id; ?><a href="#"> &nbsp; Edit Profile</a></strong> </li>
                <li> Created on : <?= $member['info']->created_on; ?>  </li>
                <li> Last Login : <?= $member['info']->last_login; ?>  </li>
            </ul>
        </div>

        <div style="width: 200px; float: right; height: auto">
            <ul>
                <li><a href="<?= base_url();?>member/myaccount/change_password"> Change Password </a></li>
                <li><a href="<?= base_url();?>member/car/add"> Add New Car for Sale </a></li>
                <li><a href="<?= base_url();?>member/myaccount/delete/<?= $member['info']->id; ?>" onclick="return confirm('Are you sure you want to Delete Account? \n It will delete all the information of your account. ')"> Delete Account </a></li>
            </ul>
        </div>
    </div>
</div> <!-- End of Box_2 -->




<div class="box_2">
    <div class="title reg bold"> 
        <span class="inline-block fleft align_left"> <h2> POST YOUR REQUIREMENT ! </h2> </span>
        <div class="clear"></div>
    </div>

    <form class="form2" id="post_requirement" method="post" action="<?= base_url(); ?>member/car/post_requirement_submit">
        <p> 
            Please fill your requirement correctly, so that Seller can find you instantly. 
        </p>

        <!-- Error Message -->
        <div id="validation">
            <?php echo validation_errors(); ?> 
        </div>
        <?php if ($this->session->flashdata('message')) { ?>
            <div id="message"> <?= $this->session->flashdata('message'); ?></div>
        <?php } ?>
        <!-- End of Error Message -->                                    

        <div class="rowElem">
            <div class="fleft mid_col">
                <label><strong>Make:</strong></label>
                <select name="car_make" style="width: 200px" onChange="getCarModel(this.value,'<?= base_url(); ?>','sale_car_model_div');">
                    <option value="" selected>Make</option>
                    <?php foreach ($car['make'] as $car_make): ?> 
                        <option value="<?= $car_make->id; ?>"><?= $car_make->make; ?></option>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="fleft mid_col">
                <label><strong>Model:</strong></label>
                <div id="sale_car_model_div">
                    <select name="car_model" style="width: 200px">
                        <option value="" selected="selected">Model</option>
                    </select>  
                </div>
            </div>

            <div class="fleft mid_col">
                <label><strong>Version:</strong></label>
                <div id="ver_div">
                    <select name="car_version"  style="width: 200px">
                        <option value="" selected>Version</option>
                    </select>
                </div>
            </div>

        </div>

        <div class="clear"></div>   
        <div class="rowElem">
            <div class="fleft mini_col">
                <label><strong>Make Year (Min):</strong></label>
                <select name="car_make_year"  style="width: 200px">
                    <option value="" selected>Select Make Year</option>
                    <?php foreach ($car['make_year'] as $car_make_year): ?> 
                        <option value="<?= $car_make_year; ?>"><?= $car_make_year; ?></option>
                    <?php endforeach; ?>

                </select>
            </div>

            <div class="fleft mid_col">
                <label><strong>Owner:</strong></label>
                <select name="car_owner"  style="width: 200px">
                    <option value="" selected>Select Car Owner</option>
                    <option value="" disabled></option>
                    <?php foreach ($car['car_owner'] as $car_owner): ?> 
                        <option value="<?= $car_owner->id; ?>"><?= $car_owner->description; ?></option>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="fleft mid_col ">
                <label><strong>Preferred Colour:</strong></label>
                <input name="car_color" type="text" size="19" style="width: 190px"></input>
            </div>
            <div class="clear"></div>  
        </div>

        
        <div class="clear"></div>   
        <div class="rowElem">
            <div class="fleft mid_col">
                <label><strong>State:</strong></label>
                <select name="state" onChange="getCity(this.value,'<?= base_url(); ?>','sale_car_get_city');">
                    <option value="" selected="selected"> Region </option>
                    <option value="" disabled="disabled"> -----------------</option>
                    <?php foreach ($car['state'] as $state): ?> 
                        <option value="<?= $state->id; ?>"><?= $state->state; ?></option>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="fleft mid_col">
                <label><strong>City:</strong></label>
                <div id="sale_car_get_city">
                    <select name="city">
                        <option value="" selected="selected"> City </option>
                        <option value="" disabled="disabled">----------------</option>
                    </select>  
                </div>
            </div>

            <div class="fleft mid_col ">
                <label><strong>Budget (Max):</strong></label>
                <input name="car_price" type="text" size="19" style="width: 190px"></input>
            </div>
        </div>                                        

        <div class="clear"></div>   
        
        <!-- PART --->

        <div class="clear"></div>   
        <div class="rowElem">
            <div class="fleft">
                <label><strong>Your Comments (Min 50 Character):</strong></label>
                <textarea name="car_comments" id="textarea" cols="77" rows="4"><?php echo set_value('car_comments'); ?></textarea>
            </div>
        </div>      

        <div class="clear"></div>

        <input name="car_agree" type="checkbox" value="I Agree" id="checkbox" /> 
        &nbsp;<strong><a href="#"> I agree the Terms & Conditions </a></strong>

        <div class="clear"></div>
        I agree that by clicking the 'Post Requirement' button below I am explicitly soliciting a call from <strong><?= $this->settings_model->get_setting('webtitle'); ?> </strong>on my 'Mobile Number' to assist me in completing this transaction.
        <div class="rowElem ">
            <div class="clear"></div>
            <a onClick="document.getElementById('post_requirement').submit()" class="inline-block button_search color_1 bold"><span class="inline-block">Post Requirement</span></a>
        </div>
        <div class="clear"></div>

    </form> <!-- END OF FORM -->

</div>





